package cn.itsource.serivce;

import cn.itsource.domain.Role;
import cn.itsource.query.RoleQuery;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;

public interface IRoleService {

    /**--------------------------------------------------------
    分页查询
     --------------------------------------------------------**/
    PageInfo<Role> selectForPage(RoleQuery query);

    /**--------------------------------------------------------
    添加角色
     --------------------------------------------------------**/
    void insertOrUpdate(Role role);

    /**--------------------------------------------------------
    保存角色和权限的中间表
     --------------------------------------------------------**/
    void insertRelationWithPermission(Long roleId, String permissionIds);
}
